fix QTextFormat::FullWidthSelection for right-to-left text layouts
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)
committerLisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)
commit8ebfee73db8563e99cf85f72733c5d01059736d8
treef7c7ece1ca19e035a493b6f684d9351f621a82cd
parentc0966b6842b9118b489db882fce269236c5ec46a
fix QTextFormat::FullWidthSelection for right-to-left text layouts

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=a7894855f2f59028
Last-Update: 2021-08-15

Using the QTextFormat::FullWidthSelection property to select a line
would previously not take into account right-to-left text layouts.

With this patch, the whole line should now be drawn correctly for both
left-to-right, and right-to-left layouts.

Gbp-Pq: Name full_width_selection_rtl.diff
src/gui/text/qtextlayout.cpp